import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: '',
      component: ()=>import('@/components/layout/Layout.vue'),
      children:[
        {
          path: '',
          redirect: '/chat',
        },
        {
          path: 'home',
          name: 'home',
          component: () => import('@/views/HomePage.vue'),
        },
        {
          path: 'chat',
          name: 'chat',
          component: ()=>import('@/views/ChatPage.vue')
        },
        {
          path: 'mcp',
          name: 'mcp',
          component: ()=>import('@/views/McpServers/Index.vue')
        },
        {
          path: 'mcpAgent',
          name: 'mcpAgent',
          component: ()=>import('@/views/McpAgent/Index.vue')
        }
      ]
    },
  ]
})

export default router
